package com.group3.service;//package com.group3.service;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@RocketMQMessageListener(consumerGroup = "oneway-topic", topic = "oneway-msg")
public class OneWayMsgListener implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        log.info("消费到了单向消息: message = {}", s);
    }
}
